package md.mru.transfer.optimized.domain;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "work_experiences", schema = "c##mru_optimized")
public class WorkExperience implements Serializable {

    @Id
    @Column(name = "id", unique = true, nullable = false, precision = 10, scale = 0)
    private long id;

    @Column(name = "work_place", length = 200)
    private String workPlace;

    @Column(name = "function", length = 100)
    private String position;

    @Temporal(TemporalType.DATE)
    @Column(name = "from_date", length = 7)
    private Date fromDate;

    @Temporal(TemporalType.DATE)
    @Column(name = "to_date", length = 7)
    private Date toDate;

    @Column(name = "work_category_id")
    private long workCategory;

    @Column(name = "folder", precision = 10, scale = 0)
    private long folder;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getWorkCategory() {
        return workCategory;
    }

    public void setWorkCategory(long workCategory) {
        this.workCategory = workCategory;
    }

    public void setFolder(long folder) {
        this.folder = folder;
    }

    public String getWorkPlace() {
        return workPlace;
    }

    public void setWorkPlace(String workPlace) {
        this.workPlace = workPlace;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public Date getFromDate() {
        return fromDate;
    }

    public void setFromDate(Date fromDate) {
        this.fromDate = fromDate;
    }

    public Date getToDate() {
        return toDate;
    }

    public void setToDate(Date toDate) {
        this.toDate = toDate;
    }

    public Long getFolder() {
        return folder;
    }

    public void setFolder(Long folder) {
        this.folder = folder;
    }
}


